package com.xbongbong.saas.domain.entity;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Program xbb-pro
 * @Description
 * @Author caoyy
 * @Date 2019/10/17
 **/
@Getter
@Setter
@ToString
public class WarehouseOristockProductEntity extends BusinessUnitProductEntity implements Serializable {
    private Long id;
    private String corpid;
    private Integer oristockId;
    private Long productId;
    private Long parentId;
    private String productName;
    private String productNo;
    private String productBarcode;
    private String spec;
    private Double oristockNum;
    private String memo;
    private Long addTime;
    private Long updateTime;
    private Long del;
    private JSONObject data;
    private String batch;
    private Long produceDate;
    private Long guaranteePeriod;
    private String unit;
    private Double cost;
    public WarehouseOristockProductEntity(){
        Long now = DateUtil.getNow();
        addTime = now;
        updateTime = now;
        del = 0L;
    }
}
